import { defineConfig } from 'vitepress';

// https://vitepress.dev/reference/site-config
export default defineConfig({
  lang: 'zh-CN', // 语言
  title: 'Antdv Pro', // 标题
  description: 'Ant Design Vue admin pro', // 介绍
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config

    // 网站底部内容
    footer: {
      message: 'Made by Antdv Pro Team with ❤️ Aibayanyu',
      copyright: 'Copyright © 2023-present Antdv Pro Team',
    },

    // 导航栏
    nav: [
      { text: '指引', link: '/guide/introduction' },
      { text: '预览地址', link: 'https://www.antdv-pro.com/' },
      {
        text: '项目地址',
        // 导航菜单
        items: [
          {
            text: '完整工程',
            link: 'https://github.com/antdv-pro/antdv-pro',
          },
          {
            text: '轻量版本',
            link: 'https://github.com/antdv-pro/antdv-pro/tree/mini',
          },
        ],
      },
      {
        text: '赞助',
        link: '/other/sponsor',
      },
    ],

    // 侧边导航栏
    sidebar: [
      {
        text: '指引',
        items: [
          { text: '项目介绍', link: '/guide/introduction' },
          { text: '迭代计划', link: '/guide/plan' },
          { text: '开始使用', link: '/guide/getting-started' },
          { text: '布局主题', link: '/guide/layout-theme' },
          { text: '主题样式', link: '/guide/theme-style' },
          { text: '路由配置', link: '/guide/router-config' },
          { text: '请求配置', link: '/guide/request' },
          { text: 'mock服务', link: '/guide/server' },
          { text: '国际化', link: '/guide/i18n-support' },
        ],
      },
    ],
    // 友情链接
    socialLinks: [{ icon: 'github', link: 'https://github.com/antdv-pro/antdv-pro' }],
    // 本地搜索
    search: {
      provider: 'local',
    },
  },

  // vite配置
  vite: {
    server: {
      port: 9527, // 端口号设置
    },
  },
});
